package com.dyh.dao;

import com.dyh.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryDao {

    int addCategory(Category category);

    int deleteCategory(int id);

    int updateCategory(Category category);

    List<Category> queryCategoryList();

    Category queryCategoryById(int id);


}
